package com.taxt.ui.fragment;

import android.view.View;

import androidx.recyclerview.widget.RecyclerView;

import com.hjq.widget.view.DrawableTextView;
import com.taxt.R;
import com.taxt.app.TitleBarFragment;
import com.taxt.other.SpUtils;
import com.taxt.ui.activity.HomeActivity;

/**
 * author : wq
 * <p>
 * time   : 2018/10/18
 * desc   : 办税 Fragment
 */
public final class FindFragment extends TitleBarFragment<HomeActivity> {

    private RecyclerView mFindView;

    private DrawableTextView showYuView;
    public static FindFragment newInstance() {
        return new FindFragment();
    }

    @Override
    protected int getLayoutId() {
        return R.layout.find_fragment;
    }

    @Override
    protected void initView() {
       showYuView=findViewById(R.id.showYu);
    }

    @Override
    protected void initData() {
        if(SpUtils.decodeString("showIcon") !=null){
            if(SpUtils.decodeString("showIcon").equals("0")){
                showYuView.setVisibility(View.GONE);
            }else{
                showYuView.setVisibility(View.VISIBLE);
            }
        }
    }


    @Override
    public boolean isStatusBarEnabled() {
        // 使用沉浸式状态栏
        return super.isStatusBarEnabled();
    }

    @Override
    protected boolean isStatusBarDarkFont() {
        return false;
    }

}